package ee122Networking;

public class Server {

	public static void main(String [ ] args) throws InterruptedException
	{
		boolean downloadImage = true;
		ServerReceiverThread st1,st2;
			if (downloadImage) {
				st1 = new ServerReceiverThread("D1", 4500, "/home/qizhu/Desktop/D1img.gif"); 			
				st2 = new ServerReceiverThread("D2", 4501, "/home/qizhu/Desktop/D2img.gif"); 
			} else {
				st1 = new ServerReceiverThread("D1", 4500); 
				st2 = new ServerReceiverThread("D2", 4501); 
			}
			st1.start();
			st2.start();
			st1.join();
			st2.join();
		}
	
}
